package diva.pap.affiliate;

import diva.pap.R;
import diva.pap.transactions.TransactionRowBase;

public class AffiliateTransactionRow extends TransactionRowBase {
  @Override
  protected void load() {
    super.load();
    AffiliateTransactionRowData row = new AffiliateTransactionRowData(request.getRow(position));
    getTextView(R.id.affiliate_transcation_row_campaign_name).setText(row.getCampaignName());
    getTextView(R.id.affiliate_transcation_row_commision).setText(row.getCommision());
    getTextView(R.id.affiliate_transcation_row_created).setText(row.getCreated());
    getTextView(R.id.affiliate_transcation_row_order_id).setText(row.getOrderId());
    getTextView(R.id.affiliate_transcation_row_product_id).setText(row.getProductId());
    getImageView(R.id.affiliate_transcation_row_status).setImageResource(
        getStatusImage(row.getStatus()));
  }
}
